package edu.smxy.associationmanagement.services.suggest.impl;

import edu.smxy.associationmanagement.domain.Suggest;
import edu.smxy.associationmanagement.mapper.SuggestMapper;
import edu.smxy.associationmanagement.services.suggest.SuggestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
* SuggestServiceImpl 服务层接口实现类
* @date  2019/04/18
* @author: : SDH
* @description: 建议管理 服务层接口实现类
*/
@Service("SuggestService")
public class SuggestServiceImpl implements SuggestService {
  @Autowired SuggestMapper suggestMapper;

  @Override
  public int deleteByPrimaryKey(final Integer id) {
    return this.suggestMapper.deleteByPrimaryKey(id);
  }

  @Override
  public int insert(final Suggest record) {
    return this.suggestMapper.insert(record);
  }

  @Override
  public int insertSelective(final Suggest record) {
    return this.suggestMapper.insertSelective(record);
  }

  @Override
  public Suggest selectByPrimaryKey(final Integer id) {
    return this.suggestMapper.selectByPrimaryKey(id);
  }

  @Override
  public int updateByPrimaryKeySelective(final Suggest record) {
    return this.suggestMapper.updateByPrimaryKeySelective(record);
  }

  @Override
  public int updateByPrimaryKeyWithBLOBs(final Suggest record) {
    return this.suggestMapper.updateByPrimaryKeyWithBLOBs(record);
  }

  @Override
  public int updateByPrimaryKey(final Suggest record) {
    return this.suggestMapper.updateByPrimaryKey(record);
  }

  @Override
  public List<Suggest> getAllSuggestByAuthorId(final Integer authorid) {
    return this.suggestMapper.getAllSuggestByAuthorId(authorid);
  }

  @Override
  public List<Suggest> getAllSuggestByReceiveId(final Integer receiveid) {
    return this.suggestMapper.getAllSuggestByReceiveId(receiveid);
  }
}
